cmake_minimum_required(VERSION 3.5)
# project (hello_cmake)
# add_executable(hello_cmake main.cc)

#find_package

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -g")

# file(GLOB_RECURSE CPP_FILES     
#     ${PROJECT_SOURCE_DIR} *.cc
# )

file(GLOB CPP_FILES
    ${PROJECT_SOURCE_DIR} src/*.cc)

message(STATUS "---------- ${CPP_FILES}")

project(hello_headers)
# set(SOURCES src/main.cc)
add_executable(hello_headers ${CPP_FILES})
target_include_directories(hello_headers
    PRIVATE ${PROJECT_SOURCE_DIR}/include
)